# cors跨域问题测试
"""
from django.urls import (
    path, re_path
)
from .views import (
    TestView, CorsText, cors
)

urlpatterns = [
    re_path(r'test/', TestView.as_view()),
    re_path(r'cors/', CorsText.as_view()),
    # re_path(r'cors/', cors),
]
"""


from django.urls import (
    path, re_path, include
)
from rest_framework.routers import SimpleRouter
from .views import (
    BannerView
)


router = SimpleRouter()
router.register('banner', BannerView, 'banner')
urlpatterns = [
    path('', include(router.urls)),
]